Controlling incoming traffic

ABSTRACT

A method and system are provided for controlling a volume of incoming traffic into a network having a plurality of ingress routers. The method includes monitoring respective loads of the plurality of ingress routers. The method further includes selecting a particular one of the plurality of ingress routers to receive future incoming traffic based on at least the respective loads of the plurality of ingress routers. The method also includes creating a mapping between an internal source IP address and a client IP address. The internal source IP address relates to the particular one of the plurality of routers. The client IP address is for a client device accessing the Internet through the network. The method additionally includes rewriting a destination IP address of the incoming traffic based on the mapping. At least the monitoring, selecting, and creating steps are performed by a controller.

BACKGROUND Technical Field

The present invention relates generally to networks and, in particular,to controlling incoming traffic into a network.

Description of the Related Art

Networks are increasingly connected to multiple providers forreliability purposes, and one of the network operators' main objectivesis to control (e.g., load balance) the incoming traffic across theingress border routers to lower transit costs, avoid network congestion,offer better performances, and withstand traffic surges (e.g., flashcrowds).

However, the tools network operators currently have at their disposalare very rudimentary. Existing methods for controlling incoming trafficare manual, error prone, vulnerable to instabilities, and provideunpredictable outcomes.

The current protocols allow operators to control the outgoing trafficbut a systematic solution for controlling incoming traffic is urgentlylacking.

SUMMARY

According to an aspect of the present principles, there is provided amethod for controlling a volume of incoming traffic into a networkhaving a plurality of ingress routers. The method includes monitoringrespective loads of the plurality of ingress routers. The method furtherincludes selecting a particular one of the plurality of ingress routersto receive future incoming traffic based on at least the respectiveloads of the plurality of ingress routers. The method also includescreating a mapping between an internal source IP address and a client IPaddress. The internal source IP address relates to the particular one ofthe plurality of routers. The client IP address is for a client deviceaccessing the Internet through the network. The method additionallyincludes rewriting a destination IP address of the incoming trafficbased on the mapping. At least the monitoring, selecting, and creatingsteps are performed by a controller.

According to another aspect of the present principles, there is provideda computer readable storage medium including a computer readable programfor controlling a volume of incoming traffic into a network having aplurality of ingress routers. The computer readable program whenexecuted on a computer causes the computer to perform the followingsteps. Respective loads of the plurality of ingress routers aremonitored. A particular one of the plurality of ingress routers isselected to receive future incoming traffic based on at least therespective loads of the plurality of ingress routers. A mapping iscreated between an internal source IP address and a client IP address.The internal source IP address relates to the particular one of theplurality of routers. The client IP address is for a client deviceaccessing the Internet through the network. A destination IP address ofthe incoming traffic is rewritten based on the mapping. At least themonitoring, selecting, and creating steps are performed by a controller.

According to yet another aspect of the present principles, there isprovided a system for controlling a volume of incoming traffic into anetwork. The system includes a plurality of ingress routers for thenetwork. The system further includes a controller for monitoringrespective loads of the plurality of ingress routers, selecting aparticular one of the plurality of ingress routers to receive futureincoming traffic based on at least the respective loads of the pluralityof ingress routers, and creating a mapping between an internal source IPaddress and a client IP address. The internal source IP address relatesto the particular one of the plurality of routers. The client IP addressis for a client device accessing the Internet through the network. Theparticular one of the plurality of ingress routers rewrites adestination IP address of the incoming traffic based on the mapping.

These and other features and advantages will become apparent from thefollowing detailed description of illustrative embodiments thereof,which is to be read in connection with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The disclosure will provide details in the following description ofpreferred embodiments with reference to the following figures wherein:

FIG. 1 shows an exemplary environment 100 to which the presentprinciples can be applied, in accordance with an embodiment of thepresent principles;

FIG. 2 shows an exemplary method 200 for controlling incoming trafficfor a network, in accordance with an embodiment of the presentprinciples; and

FIGS. 3 and 4 show another exemplary method 300 for controlling incomingtraffic for a network, in accordance with an embodiment of the presentprinciples.

DETAILED DESCRIPTION

The present principles are directed to controlling incoming traffic intoa network.

In an embodiment, network entities at the perimeter of a network rewritethe source Internet Protocol (IP) address of outgoing traffic such thatthe replies can enter the network through the desired border routers.

In an embodiment, the network entities can predict the volume ofincoming traffic of a given flow (e.g., based on historical data,external information, and/or so forth) and use this information torewrite the source IP address. As an example, a HTTP reply from a newswebsite can be on the order of 100 KB. In contrast, a HTTP request todownload a particular software program can be in the range of several MBof incoming traffic. As such, based on the destination IP address (i.e.,server IP address) of a request, the network entities can determine themost appropriate ingress routers where the reply should enter thenetwork (e.g., to achieve load balancing).

Thus, in an embodiment, source IP addresses for reply packets arerewritten to enter a desired ingress router. In an embodiment, thepresent principles can be implemented using a software defined network.In an embodiment, a controller has a global view of the network,including the load of each ingress border router. The controller canaccess counters at ingress routers and select source IP addressaccordingly. The controller can create “rewrite rules”. For example,source IP addresses can be allocated taking into account destination IPaddress (e.g., a small file size (e.g., a website) versus a large filesize (e.g., an iso image)). For TCP connections, the address rewritinghappens consistently for each flow (or even for each destinationaddress).

Hence, when a new flow (e.g., HTTP request) is initiated by a client inthe network, the controller can determine the rewriting rules for thesource IP address. For example, if the network has two border routers Xand Y advertising 10.1/16 and 10.2/16 to their providers respectively,and the router X is overloaded, then the controller should create astate to rewrite the source IP address of the new flow to be in the10.2/16 range (e.g., 10.2.1.1). This will ensure that the reply to thisflow will be entering the network through router Y. In an embodiment,the controller can create the rules so that at the perimeter, theappropriate IP fields are updated and the reply can reach the client.

FIG. 1 shows an exemplary environment 100 to which the presentprinciples can be applied, in accordance with an embodiment of thepresent principles. The environment 100 includes a network 110, borderrouters 141 and 142 corresponding to an Internet Service Provider ISP1network 140, border routers 151 and 152 corresponding to an InternetService Provider ISP2 network 150, and a server 161 accessible throughthe Internet 160. The network 110 includes border routers 111, 112, and113, a network controller (e.g., processor) 120, and a switch 130. Thenetwork controller 120 includes a memory 121. A client 170 accesses theserver 161 though the Internet 160 and network 140 and/or network 150.

It is to be appreciated that while the network controller 120 is shownas a standalone element in network 110, in other embodiments, thenetwork controller 120 can be incorporated into one or more otherelements of network 110. For example, the network controller 120 can beincorporated into the switch 130 and/or one or more of the borderrouters 111, 112, and 113. These and other variations of environment 100are readily contemplated by one of ordinary skill in the art given theteachings of the present principles provided herein, while maintainingthe spirit of the present principles.

FIG. 2 shows an exemplary method 200 for controlling incoming trafficfor a network, in accordance with an embodiment of the presentprinciples.

At step 205, receive a newly originated connection request to the server161 by the network controller 120.

At step 210, check destination IP address and determine average transfersize from this server 161.

At step 215, inspect boarder router's load and select appropriateingress point(s) to satisfy desired policy.

At step 220, create mapping rules to ensure traffic flow will enter thenetwork 110 through the selected ingress point(s).

At step 225, install the mapping at the ingress point(s) so that packetscan be routed between the client 170 and the server 161.

For the sake of clarity and illustration, a detailed example of animplementation of method 200 is described hereinafter with respect tomethod 300. Method 300 is shown and described with respect to FIGS. 3and 4.

FIGS. 3 and 4 show another exemplary method 300 for controlling incomingtraffic for a network, in accordance with an embodiment of the presentprinciples.

At step 305, the network controller 120 continuously monitors therespective loads of the border routers 111, 112, and 113.

At step 310, client 170 (IP address: 192.168.1.1) sends a connectionrequest to server 161 (IP address: 2.2.2.2).

At step 315, in the absence of an entry for the above flow in the switch130, the switch 130 forwards the client's request to the networkcontroller 120.

At step 320, the network controller 120 optionally estimates thetransfer size (e.g., based on previous requests to the server IP address2.2.2.2).

At step 325, the network controller 120 selects the appropriate ingressborder router (from among routers 111, 112, and 113) to satisfy adesired policy (e.g., promulgated by a network administrator). Theselection can be based on, e.g., the respective loads of the ingressrouters and/or the transfer size. Of course, the selection can befurther based on other considerations readily determined by one ofordinary skill in the art, given the teachings of the present principlesprovided herein. For illustration purposes, we assume router 111 is theselected router. The router 111 advertises the prefix 9.2.1.0/24 to ISP1network 140.

At step 330, the network controller 120 creates a mapping from theclient IP address to an IP address in its subnet: e.g.,192.168.1.1←→49.2.1.65, and installs this mapping in the selected router111.

At step 335, the client request is forwarded from the switch 130 to theselected router 111.

At step 340, based on the mapping created in step 330, the selectedrouter 111 overwrites the source IP address of the client request from192.168.1.1 to 9.2.1.65, and then forwards client request to the server161.

At step 345, upon receiving the client request, the server 161 (IPaddress 2.2.2.2) replies to the client 170 (IP address: 9.2.1.65).

At step 350, since the client address (9.2.1.65) belongs to the subnetadvertised by selected router 111, the reply enters the network 110through the selected router 111.

At step 355, the selected router 111 overwrites the destination IPaddress of the reply from 9.2.1.65 to 192.168.1.1.

At step 360, the selected router 111 forwards the packet to the client170.

At step 365, subsequent packets between the client 170 and server 161can be exchanged: The client 170 still writes its source IP address as192.168.1.1. The selected router 111 overwrites it (i.e., source IPaddress 192.168.1.1) to 9.2.1.65 forcing the return packets to come tothe selected router 111. For return packets coming from 2.2.2.2 to9.2.1.65, the selected router 111 overwrites the destination IP addressfrom 9.2.1.65 to 192.168.1.1 and forwards them to the client 170.

The present invention may be a system, a method, and/or a computerprogram product. The computer program product may include a computerreadable storage medium (or media) having computer readable programinstructions thereon for causing a processor to carry out aspects of thepresent invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including an objectoriented programming language such as Smalltalk, C++ or the like, andconventional procedural programming languages, such as the “C”programming language or similar programming languages. The computerreadable program instructions may execute entirely on the user'scomputer, partly on the user's computer, as a stand-alone softwarepackage, partly on the user's computer and partly on a remote computeror entirely on the remote computer or server. In the latter scenario,the remote computer may be connected to the user's computer through anytype of network, including a local area network (LAN) or a wide areanetwork (WAN), or the connection may be made to an external computer(for example, through the Internet using an Internet Service Provider).In some embodiments, electronic circuitry including, for example,programmable logic circuitry, field-programmable gate arrays (FPGA), orprogrammable logic arrays (PLA) may execute the computer readableprogram instructions by utilizing state information of the computerreadable program instructions to personalize the electronic circuitry,in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

Reference in the specification to “one embodiment” or “an embodiment” ofthe present principles, as well as other variations thereof, means thata particular feature, structure, characteristic, and so forth describedin connection with the embodiment is included in at least one embodimentof the present principles. Thus, the appearances of the phrase “in oneembodiment” or “in an embodiment”, as well any other variations,appearing in various places throughout the specification are notnecessarily all referring to the same embodiment.

It is to be appreciated that the use of any of the following “/”,“and/or”, and “at least one of”, for example, in the cases of “A/B”, “Aand/or B” and “at least one of A and B”, is intended to encompass theselection of the first listed option (A) only, or the selection of thesecond listed option (B) only, or the selection of both options (A andB). As a further example, in the cases of “A, B, and/or C” and “at leastone of A, B, and C”, such phrasing is intended to encompass theselection of the first listed option (A) only, or the selection of thesecond listed option (B) only, or the selection of the third listedoption (C) only, or the selection of the first and the second listedoptions (A and B) only, or the selection of the first and third listedoptions (A and C) only, or the selection of the second and third listedoptions (B and C) only, or the selection of all three options (A and Band C). This may be extended, as readily apparent by one of ordinaryskill in this and related arts, for as many items listed.

Having described preferred embodiments of a system and method (which areintended to be illustrative and not limiting), it is noted thatmodifications and variations can be made by persons skilled in the artin light of the above teachings. It is therefore to be understood thatchanges may be made in the particular embodiments disclosed which arewithin the scope of the invention as outlined by the appended claims.Having thus described aspects of the invention, with the details andparticularity required by the patent laws.

What is claimed and desired protected by Letters Patent is set forth inthe appended claims:
 1. A method for controlling a volume of incomingtraffic into a network having a plurality of ingress routers, the methodcomprising: monitoring respective loads of the plurality of ingressrouters; selecting a particular one of the plurality of ingress routersto receive future incoming traffic based on at least the respectiveloads of the plurality of ingress routers; creating rewrite rules for aninternal source IP address and a mapping between the internal source IPaddress and a client IP address, the internal source IP address relatingto the particular one of the plurality of routers, the client IP addressbeing for a client device accessing the Internet through the network;and rewriting a destination IP address of the incoming traffic based onthe mapping.
 2. The method of claim 1, wherein said selecting step isfurther based on predictions of future loads on the plurality of ingressrouters.
 3. The method of claim 1, wherein said selecting step isfurther based on an expected reply size of a reply to a request issuedby the client device with respect to a remote server.
 4. The method ofclaim 1, wherein the internal source IP address belongs to a subnet ofthe network that is advertised by the particular one of the plurality ofingress routers.
 5. The method of claim 1, wherein the mapping isinstalled in the particular one of the plurality of routers.
 6. Themethod of claim 1, wherein said rewriting step is performed by theparticular one of the plurality of routers.
 7. The method of claim 1,wherein said rewriting step rewrites the destination IP address of theincoming traffic to the internal source IP address.
 8. The method ofclaim 7, further comprising, subsequent to said step of rewriting thedestination IP address, rewriting the internal source IP address to theclient IP address for a reply received for the client device from theserver.
 9. A computer readable storage medium comprising a computerreadable program for controlling a volume of incoming traffic into anetwork having a plurality of ingress routers, wherein the computerreadable program when executed on a computer causes the computer toperform the steps of: monitoring respective loads of the plurality ofingress routers; selecting a particular one of the plurality of ingressrouters to receive future incoming traffic based on at least therespective loads of the plurality of ingress routers; creating rewriterules for an internal source IP address and a mapping between theinternal source IP address and a client IP address, the internal sourceIP address relating to the particular one of the plurality of routers,the client IP address being for a client device accessing the Internetthrough the network; and rewriting a destination IP address of theincoming traffic based on the mapping.
 10. The computer readable storagemedium of claim 9, wherein said selecting step is further based onpredictions of future loads on the plurality of ingress routers.
 11. Thecomputer readable storage medium of claim 9, wherein said selecting stepis further based on an expected reply size of a reply to a requestissued by the client device with respect to a remote server.
 12. Thecomputer readable storage medium of claim 9, wherein the internal sourceIP address belongs to a subnet of the network that is advertised by theparticular one of the plurality of ingress routers.
 13. The computerreadable storage medium of claim 9, wherein the mapping is installed inthe particular one of the plurality of routers.
 14. The computerreadable storage medium of claim 9, wherein said rewriting step isperformed by the particular one of the plurality of routers.
 15. Thecomputer readable storage medium of claim 9, wherein said rewriting steprewrites the destination IP address of the incoming traffic to theinternal source IP address.
 16. The computer readable storage medium ofclaim 15, further comprising, subsequent to said step of rewriting thedestination IP address, rewriting the internal source IP address to theclient IP address for a reply received for the client device from theserver.
 17. A system for controlling a volume of incoming traffic into anetwork, comprising: a plurality of ingress routers for the network; anda controller for monitoring respective loads of the plurality of ingressrouters, selecting a particular one of the plurality of ingress routersto receive future incoming traffic based on at least the respectiveloads of the plurality of ingress routers, and creating rewrite rulesfor an internal source IP address and a mapping between an internalsource IP address and a client IP address, the selecting comprisingcontrolling a path of reply traffic into the network by rewriting asource IP address of outgoing traffic, wherein the internal source IPaddress relates to the particular one of the plurality of routers, theclient IP address is for a client device accessing the Internet throughthe network, and the particular one of the plurality of ingress routersrewrites a destination IP address of the incoming traffic based on themapping.
 18. The system of claim 17, wherein the controller is astandalone element located within the network and configured tocommunicate with at least the plurality of ingress routers.
 19. Thesystem of claim 17, wherein the controller is located within at leastone of the plurality of ingress routers.
 20. The system of claim 17,wherein the controller is located within a network switch configured tocommunicate with the plurality of ingress routers.